#coding:utf-8


from mako.lookup import TemplateLookup


__UNICODE__ = "utf-8"



class MakoTemplate:
    def __init__(self):
        self._lookup = TemplateLookup(directories=['templates'],
                                        input_encoding=__UNICODE__,
                                        output_encoding=__UNICODE__,
                                        collection_size=100)
    
    def template(self, name):
        return self._lookup.get_template(name)
    
mako = MakoTemplate()
